package net.youball.utils.String;

import java.util.Random;

public class RandomUtils {
	public final static Random r=new Random();
	
	public final static StringBuffer str=new StringBuffer("123456789123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
	public static String getRand(int size){
		
		StringBuffer s=new StringBuffer(size);
		for(int i=0;i<size;i++){
			int index=r.nextInt(str.length());
			s.append(str.substring(index, index+1));
			
		}
		 
		return s.toString();
	}
	public static void main(String[] args) {
		System.out.println(str.length());
		for(int i=0;i<100;i++)
		System.out.println(getRand(8));
	}
}
